Skip to content

Syncing from upstream OCA/server-backend (19.0) - #458

Merged
bt-admin merged 48 commits into
brain-tec:19.0from
OCA:19.0
Jun 21, 2026
Merged

Syncing from upstream OCA/server-backend (19.0)#458
bt-admin merged 48 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

webtec and others added 30 commits February 1, 2026 14:51
…d__ and adopted for instalation on v8.0 : created new form views for both modules as old ones was for v6.1
OCA Transbot updated translations from Transifex
* Migration of base_external_dbsource to odoo 9.0

* Fixing test error

* Moving test from yaml to python

* Fixing pylint error in test class

* Placeholder added to connection string text zone

* improving test coverage

OCA Transbot updated translations from Transifex
OCA Transbot updated translations from Transifex
With the agreement of authors and contributors.
Closes #635 (OCA/server-tools#635)
* Heavily refactor code for reusability
* Split all sources into independent modules
* Add more test coverage
* Add CRUD methods
* Add iterator execute return to roadmap

OCA Transbot updated translations from Transifex
* Use `conn_string_full` in pg connection to fix #888

[UPD] Update base_external_dbsource.pot
[UPD] README.rst

[UPD] Update base_external_dbsource.pot
[UPD] README.rst

[UPD] Update base_external_dbsource.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-12.0/server-backend-12.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/

[UPD] README.rst
Currently translated at 100.0% (34 of 34 strings)

Translation: server-backend-12.0/server-backend-12.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/pt_BR/
Before, postgres configuration was hardcoded. This worked OK for OCA's CI infrastructure, but failed in any other out there that had different defaults.

There's no need to hardcode it; Odoo already must have Postgres connection settings, so let's use those instead. This will make tests testable across different CI infrastructures.

base_external_dbsource 12.0.1.0.1

[UPD] Update base_external_dbsource.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-12.0/server-backend-12.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/

[UPD] Update base_external_dbsource.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-12.0/server-backend-12.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/
[UPD] Update base_external_dbsource.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-13.0/server-backend-13.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_external_dbsource/

pre-commit update

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-13.0/server-backend-13.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_external_dbsource/
 - problems with tests
 - pre-commit

[UPD] Update base_external_dbsource.pot

[UPD] README.rst
…t be tested (it is not possible to test the connection with odoo postgress).

base_external_dbsource 14.0.1.0.1
Currently translated at 34.4% (10 of 29 strings)

Translation: server-backend-15.0/server-backend-15.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_dbsource/it/
Currently translated at 55.1% (16 of 29 strings)

Translation: server-backend-16.0/server-backend-16.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_external_dbsource/sl/
Currently translated at 100.0% (29 of 29 strings)

Translation: server-backend-16.0/server-backend-16.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_external_dbsource/es/
weblate and others added 18 commits February 1, 2026 14:51
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-16.0/server-backend-16.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_external_dbsource/
Currently translated at 100.0% (30 of 30 strings)

Translation: server-backend-16.0/server-backend-16.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_external_dbsource/pt_BR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-17.0/server-backend-17.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_external_dbsource/
Currently translated at 100.0% (29 of 29 strings)

Translation: server-backend-17.0/server-backend-17.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_external_dbsource/it/
Add unit tests for external database sources with Odoo 19 compatibility
fixes: store current_table in a per-record class cache (Odoo 19 rejects
arbitrary attributes on record instances), replace deprecated tools.ustr,
adjust tests for Odoo 19 field and context manager behavior, and fix a
connector typo in NotImplementedError message formatting.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by max3903
@bt-admin bt-admin added the 19.0 label Jun 21, 2026
@bt-admin
bt-admin merged commit c979e01 into brain-tec:19.0 Jun 21, 2026
4 checks passed
@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.38944% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.36%. Comparing base (e000417) to head (483ab17).
⚠️ Report is 57 commits behind head on 19.0.

Files with missing lines Patch % Lines
...external_dbsource/models/base_external_dbsource.py 88.98% 13 Missing ⚠️
...rnal_dbsource/tests/test_base_external_dbsource.py 97.80% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0     #458      +/-   ##
==========================================
+ Coverage   89.22%   91.36%   +2.14%     
==========================================
  Files          18       23       +5     
  Lines         427      730     +303     
  Branches       34       45      +11     
==========================================
+ Hits          381      667     +286     
- Misses         40       55      +15     
- Partials        6        8       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.